package org.groupg.practice.jexl;

import org.apache.commons.jexl3.*;

public class MainExample {
    public static void main(String[] args) {
        String expression = "a";

            JexlEngine jexl = new JexlBuilder().create();
//            JexlScript e = jexl.createScript(expression);
            JexlExpression x = jexl.createExpression(expression);
            
            JexlContext context = new MapContext();
            context.set("a","admfihadf");

            System.out.println("The expression is valid. Result: " + x.evaluate(context));

    }
}
